package com.example.webapp.service;

import com.example.webapp.bean.User;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Optional;

public interface UserService {
    void insertUser(User user);// 添加用户
    void deleteUser(Integer uid);// 删除用户
    void updateUser(User user);// 修改用户
    List<User> selectAllUser();// 查询所有用户
    List<User> selectLike(String search);// 模糊查询
    User selectUsernameAndPassword(String username,String password);
    User selectUsername(String username);
    Optional<User> selectUserid(Integer id);
}
